<div class="content page" data-page="warehousePickupList" id="warehousePickupList">
	<p class="p1" style="padding-bottom: 10px;"><img src="../../../res/png/round2.png" />&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:changeTab(1)">项目总览 > 销售提货列表</a></p>
<!-- 	<div id="applyType" class="applyType1">
		<span applyType="applyType1" action="inquireFinancePickupApplicationWarehousePageList.json" class="active_applyType" type="pickupId">提货列表</span>
		<span type="pickupId" action="inquireFinancePickupApplicationWarehousePageList.json" applyType="applyType2" class="productType_type">指定供应商提货列表</span>
	</div> -->
	<div class="table-search">
		<div class="searchDataLine">  
			<div>
				制单时间：<input class="Wdate FromTime" type="text"
					id="applyTimeStart" name="dateBegin" placeholder="请选择时间"
						onFocus="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false,readOnly:true,maxDate:'#F{$dp.$D(\'applyTimeEnd\',{d:0})}'})" style="width: 98px;"/>-<input
					class="Wdate ToTime" type="text" id="applyTimeEnd" name="dateEnd" placeholder="请选择时间"
						onFocus="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false,readOnly:true,minDate:'#F{$dp.$D(\'applyTimeStart\',{d:1})}'})" style="width: 98px;"/>
			</div>
			<div>
				提单号：<input placeholder="请输入提单号" name="pickupNumber" class="pickupNumber" type="text" style="height: 30px;"/>
			</div>
		<!-- 	<div id="pp1">
				供应商:<select isNull="1" codeName="委托方" name="enterpriseId" style="height: 30px; width:220px;"><option value="">请选择</option></select>
			</div>			 -->
		</div>
		<div class="searchDataLine">
			<div>
				提货时间：<input class="Wdate FromTime" type="text"
						id="applyTimeStart" name="dateBegin2" placeholder="请选择时间"
							onFocus="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false,readOnly:true,maxDate:'#F{$dp.$D(\'applyTimeEnd\',{d:0})}'})" style="width: 98px;"/>-<input
						class="Wdate ToTime" type="text" id="applyTimeEnd" name="dateEnd2" placeholder="请选择时间"
							onFocus="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false,readOnly:true,minDate:'#F{$dp.$D(\'applyTimeStart\',{d:1})}'})" style="width: 98px;"/>
			</div>
			<div>
				货物名称：<input placeholder="请输入货物名称" name="bulkstockName" class="bulkstockName" type="text" style="height: 30px;"/>
			</div>
 	<!-- 		<div>
				状态:<select name="pickupState" style="margin-right: 35px;">
							<option value="">全部</option>
							<option value="0">待提交</option>
							<option value="1">已取消</option>
							<option value="2">初审中</option>
							<option value="3">合同待上传</option>
							<option value="4">合同待提交</option>
							<option value="5">待客户签署</option>
							<option value="6">待平台签署</option>
							<option value="7">合同待确认</option>
							<option value="8">合同已打回</option>
							<option value="9">平台已签署</option>
							<option value="10">政审中</option>
							<option value="11">待放货</option>
							<option value="12">已放货</option>
							<option value="13">审批拒绝</option>
						</select>
				</div>  -->
				<div>
					<a class="table-search-button seatchButon" id="accountRecordApplySearchButton" action="inquireFinancePickupApplicationWarehousePageList.json" style="margin-bottom:-9px;">查询</a>
				</div>
			</div>
<!-- 			<div class="searchDataLine">
				<div style="border-left-width: 900px; padding-left: 845px;">
					<a class="table-search-button seatchButon" id="accountRecordApplySearchButton" action="inquireFinancePickupApplicationWarehousePageList.json" style="margin-top:3px;">查询</a>
				</div>
			</div> -->
		</div>
	<div class="content1">
		<table class="outerTable">
			
		</table>
		<div class="pagerCon"></div>
		<script type="text/template" id="warehouseUpInfoTmpl">
			<tr style="border-bottom: solid 1px #CCC;">
				<th>No</th>
				<th>融资编号</th>
				<th>业务类型</th>
				<th>货物名称</th>
				<th>仓库</th>
				<th class="none">剩余监管量(吨)</th>
				<th>提货量(吨)</th>
				<th class="none">本金(元)</th>
				<th class="none">服务费(元)</th>
				<th class="none">其他(元)</th>
				<th>总金额(元)</th>
				<th>状态</th>
				<th>操作</th>
			</tr>
			<tr style="border: none;">
				<td style="padding: 5px 0; border: none;" colspan="13" style="border: none;"></td>
			</tr>
			{@each datas as it, index}
				<tr class="bulkstockData2" pickupId="${it.pickupId}" enterpriseId="${it.enterpriseId}" productType="${it.productType}" enterpriseNames="${it.enterpriseName}">
					<td rowspan="${it.bulkstockList.length*1+ 2}">${index*1 + 1}</td>
					<td colspan="12" style="text-align: right;">
						<span style="float: left; margin-right: 10px;">提单号: ${it.pickupNumber}</span> <span style="float: left;">供应商: ${it.enterpriseName}</span> <!-- 制单人：${it.creator} 制单时间：${it.createDateTime}  最后修改人：${it.updator} </br> --> 修改时间：${it.updateDateTime}
					</td>
				</tr>
				${aa = 0}
					{@each it.bulkstockList as that}
					${aa = aa*1 + that.pickupAmount}
					{@/each}
					{@each it.bulkstockList as item,i2}

					<tr class="bulkstockData" enterpriseNames="${it.enterpriseName}" buyer="${it.buyer}" pickupId="${it.pickupId}" financeId="${item.financeId}" pickupState="${it.pickupState}" creator="${it.creator}" updator="${it.updator}"  productType="${it.productType}" {@if it.bulkstockList.length > 1}style="border-bottom: solid 1px #CCC;" {@else} style="line-height: 35px;" {@/if}>
						<td>${item.financeNumber}<br/>${item.financeApplicationDate}</td>
						<td>${getValueByKey(7, item.productType)}</td>
						<td>${item.bulkstockName}(${item.specifician})</td><td>${item.warehouseName}<br/>${item.locationArea}/${item.locationName}</td> <!--<td>${item.supervisionQuantity}</td> --><td>${item.pickupQuantity}</td> <!--<td>${formatCurrency(item.bulkstockAmount)}</td><td>${formatCurrency(item.interest)}</td><td>${formatCurrency(item.others)}</td>-->
					{@if i2 == 0} 
						<td style="border: solid 1px #CCC;" class="sum" rowspan="${it.bulkstockList.length}">${formatCurrency(aa)}</td>
						<td style="border: solid 1px #CCC;" rowspan="${it.bulkstockList.length}">${getValueByKey(82, it.pickupState)}{@if it.pickupState != 1 && it.pickupState != 3 && it.pickupState != 4 && it.pickupState != 5 && it.pickupState != 6 && it.pickupState != 7 && it.pickupState != 8 && it.pickupState != 9 } {@if it.finalNode != null && it.finalNode != ""}<br /> ${it.finalNode}审核</td>{@/if} {@/if}
						<td class="operation" style="border: solid 1px #CCC;" rowspan="${it.bulkstockList.length}">
						<!--	<div style="display: inline-block;">
								{@each it.bulkstockList as t}
								{@if it.pickupState == 12}
								<a financeNumber="${t.financeNumber}" locationId="${t.locationId}" href="javascript:void(0);" class="ouInfo">出库信息</a><br />
								{@/if}
								{@/each}
							</div> -->
							<a href="javascript:void(0);" class="details">详情</a> 
							{@if it.pickupState == 0}
								{@if it.self == true}
								 <a href="javascript:void(0);" class="update_s2">修改</a> <a class="cancel_01" href="javascript:void(0);">取消</a>
								{@/if}
							{@else if it.pickupState == 5}
								<a href="javascript:void(0);" id="documentSign_s2">合同签署</a>
							{@/if}
							</td>
						{@/if}        
					</tr>
					{@/each}
					<!--<tr style="background: none; border: none;" class="sumInfo">
						<td></td>
						<td></td>
						<td style="font-size: 16px; text-align: right;">合计：</td>
						<td><span style="font-size: 16px;" class="pickupQuantitys">sum</span></td>
						<td><span style="font-size: 16px;" class="bulkstockAmount">sum</span></td>
						<td><span style="font-size: 16px;" class="interest">sum</span></td>
						<td><span style="font-size: 16px;" class="others">sum</span></td>
						<td><span style="font-size: 16px;" class="pickupAmounts">sum</span></td>
						<td></td>
						<td></td>
					</tr>-->
				<tr>
					<td colspan="12">
						{@if it.productType == 6}
						<span style="float: left;">买方：${it.buyer}</span>
						{@/if}
						<span style="float: right;"> 送货地址：${it.deliveryAddress} 提货方式：${getValueByKey(81, it.pickupMethod)} 提货时间：${(it.pickupDate).substr(0, 10)}</span>
					</td>
				</tr>
				<tr style="border: none;">
					<td style="padding: 5px 0; border: none;" colspan="13" style="border: none;"></td>
				</tr>
			{@/each}
		</script>
	</div>
</div>